package com.spring.component.test.xml;

import com.spring.component.xml.annotation.Level;
import com.spring.component.xml.annotation.Xml;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @ClassName: Goods
 * @Description:
 * @author: liushihua
 * @date: 2018/12/6
 **/
@Getter
@Setter
@ToString
@Level(0)
public class Goods {

  @Xml(id = 0, isAttr = true, isElement = true)
  private String id;

  @Xml(id = 1, xmlName = "name", isElement = true)
  private String name;

  @Xml(isElement = true)
  private String price;

  @Xml(isElement = true)
  private int count;

  @Xml(isElement = true, xmlName = "total_price")
  private String totalPrice;
}
